inventory
Configuration for Inventory resource.
Read/write properties
devices<String[]>
List of Device IPAddresses.
agent_id<String>
Agent ID.
Minimum length = 1
Maximum length = 64
device_ipaddress<String>
Device IP Address.
Minimum length = 1
Maximum length = 64
Read only properties
act_id<String>
Activity Id.
device_type<String>
Status of inventory.
customer_name<String>
customer name.
inventory_status<String>
Status of inventory.
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/inventory?onerror=<String_value>
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"inventory": {
"agent_id":<String_value>,
"device_ipaddress":<String_value>,
"devices":<String_value[]>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "inventory":[{
"act_id":<String_value>,
"device_type":<String_value>,
"devices":<String_value>,
"agent_id":<String_value>,
"device_ipaddress":<String_value>,
"customer_name":<String_value>,
"inventory_status":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/inventory
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "inventory":[{
"act_id":<String_value>,
"device_type":<String_value>,
"devices":<String_value>,
"agent_id":<String_value>,
"device_ipaddress":<String_value>,
"customer_name":<String_value>,
"inventory_status":<String_value>}]}